#encoding=utf8

import os
import web
from web.contrib.template import render_jinja
render = render_jinja('template', encoding='utf-8')

urls=(
        '/', 'index',
        '/exp', 'exp',
        '/exp1', 'exp1',
        '/test', 'test'
        )



class exp:
    def POST(self):
        print 'hello post'
        raise web.seeother('/exp1')

class exp1:
    def GET(self):
        return 'hello world'
        
class index:
    def GET(self):
        return render.menu()



if __name__ =="__main__":
    app = web.application(urls, globals())
    app.run()




